package com.oa.system.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 审批流程表
 * </p>
 *
 * @author syb123
 * @since 2019-01-29
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("default_approval_process_define")
@ApiModel(value = "审批流程")
public class ApprovalProcessDefine extends Model<ApprovalProcessDefine> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "Code")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "流程名称")
    private String processName;

    @ApiModelProperty(value = "备注")
    private String remake;

    @ApiModelProperty(value = "更新时间  yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}